<template>
  <div class="process_content">
    <section id="cd-timeline" class="cd-container">
      <div class="cd-timeline-block">
        <div class="cd-timeline-img cd-picture">
          <img src="../../../assets/lerannow/svg/cd-icon-movie.svg">
        </div>
        <div class="cd-timeline-content">
          <p>
            <span>Pre-training</span>
          </p>
          <p class='preview'>
            <span>某课程预习资料</span>
          </p>
          <p class="data">
            <span>Pre-training</span>
          </p>
        </div>
      </div>

      <!-- 现场 -->
      <div class="cd-timeline-block">
        <div class="cd-timeline-img cd-picture">
          <img src="../../../assets/lerannow/svg/cd-icon-movie.svg">
        </div>
        <div class="cd-timeline-content">
          <p>
            <span>During Training</span>
          </p>
          <p class='preview'>
            <span>某课程预习资料</span>
          </p>
          <p class="data">
            <span>Pre-training</span>
          </p>
        </div>
      </div>
      <!--过期课程-->
      <div class="cd-timeline-block">
        <div class="cd-timeline-img cd-picture">
          <img src="../../../assets/lerannow/svg/cd-icon-movie.svg">
        </div>
        <div class="cd-timeline-content">
          <p>
            <span>During Training</span>
          </p>
          <p class='preview'>
            <span>某课程预习资料</span>
          </p>
          <p class="data">
            <span>Pre-training</span>
          </p>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
  // import { Timeline, TimelineItem, XButton } from 'vux'

  export default {
    components: {},
    data() {
      return {
        count: 3
      }
    }
  }
</script>

<style lang="less" scope>
.process_content{
  background: #f5f5f5;
}
// process_content
  .cd-container {
    /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
    width: 90%;
    margin: 0 auto;
  }

  .cd-container::after {
    /* clearfix */
    content: '';
    display: table;
    clear: both;
  }

  #cd-timeline {
    position: relative;
    padding: 17px 0; // margin-top: 2em;
  }

  #cd-timeline::before {
    /* this is the vertical line */
    content: '';
    position: absolute;
    top: 33px;
    left: 14px; // height: 225px;
    height: 65%;
    width: 2px;
    background: #c11613;
  }


  .cd-timeline-block {
    position: relative;
    margin: 2em 0;
  }

  .cd-timeline-block:after {
    content: "";
    display: table;
    clear: both;
  }

  .cd-timeline-block:first-child {
    margin-top: 0;
  }

  .cd-timeline-block:last-child {
    margin-bottom: 0;
  }

  // 步骤条背景色
  .cd-timeline-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
  }

  .cd-timeline-img img {
    display: block;
    width: 20px;
    height: 20px;
    position: relative;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -10px;
  }

  .cd-timeline-img.cd-picture {
    background: #c03b44;
  }

  .cd-timeline-img.cd-movie {
    background: #c03b44;
  }

  .cd-timeline-img.cd-location {
    background: #f0ca45;
  }

  @media only screen and (min-width: 1170px) {
    .cd-timeline-img {
      width: 60px;
      height: 60px;
      left: 50%;
      margin-left: -30px;
      /* Force Hardware Acceleration in WebKit */
      -webkit-transform: translateZ(0);
      -webkit-backface-visibility: hidden;
    }
    .cssanimations .cd-timeline-img.is-hidden {
      visibility: hidden;
    }
    .cssanimations .cd-timeline-img.bounce-in {
      visibility: visible;
      -webkit-animation: cd-bounce-1 0.6s;
      -moz-animation: cd-bounce-1 0.6s;
      animation: cd-bounce-1 0.6s;
    }
  }

  //  内容区
  .cd-timeline-content {
    position: relative;
    margin-left: 60px;
    background: white;
    border-radius: 0.25em;
    padding: 10px;
    box-shadow: 0 3px 0 #d7e4ed;
  }

  .cd-timeline-content:after {
    content: "";
    display: table;
    clear: both;
  }

  .cd-timeline-content p,
  .cd-timeline-content .cd-read-more,
  .cd-timeline-content .cd-date {
    font-size: 13px;
    font-size: 0.8125rem;
  }

  .cd-timeline-content::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
    border-right: 7px solid white;
  }

  .cd-timeline-content {
    text-align: left;
    p {
      width: 100%;
      line-height: 35px;
      color: #c11613;
      font-size: 15px;
    }
    .preview {
      width: 100%;
      line-height: 35px;
      color: #2e2c2c;
      font-size: 15px;
      border-top: 1px #dfdddd solid;
    }
    .data {
      width: 100%;
      line-height: 35px;
      color: #5e5e5e;
      font-size: 15px;
      border-top: 1px #f5f5f5 solid;
    }
  }

</style>
